package com.jblog.core.service.account.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jblog.core.dao.account.LogDao;
import com.jblog.core.model.account.Log;
import com.jblog.core.model.account.param.LogParam;
import com.jblog.core.service.account.LogService;

@Service
public class LogServiceImpl implements LogService {

    @Autowired private LogDao logDao;
    
    @Override
    public Long count(LogParam p) {
        return logDao.count(p);
    }

    @Override
    public void delete(Long id) {
        logDao.deleteByPk(id);
    }

    @Override
    public void delete(List<Long> ids) {
        logDao.deleteBatchByPks(ids);
    }

    @Override
    public List<Log> findByParam(LogParam p) {
        return logDao.byParam(p);
    }

    @Override
    public void save(Log e) {
        logDao.save(e);
    }

}
